package com.qf.web.sys_user.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.Date;

/**
 * @author xufuhan
 * @Date 2024/9/10 11:20
 */

@Data
@TableName("sys_user")
public class User {
    @TableId(type = IdType.AUTO)
    private Long userId;

    @TableField(exist = false)
    private Long roleId;

    private String username;
    private String password;
    private String phone;
    private String email;
    private int sex;
    private int isAdmin;
    //帐户是否过期(1 未过期，0已过期)
    private Boolean isAccountNonExpired =true;
    //帐户是否被锁定(1 未锁定，0已锁定)
    private Boolean isAccountNonLocked =true;
    //密码是否过期(1 未过期，@己过期)
    private Boolean isCredentialsNonExpired =true;
    //帐户是否可用(1 可用，0 删除用户)
    private Boolean isEnabled =true;
    private String nickName;
    private Date createTime;
    private Date updateTime;
}
